#ifndef _SIMPLELIST_H
#define _SIMPLELIST_H

struct simplenode {
	unsigned long elm;
	struct simplenode *next;
};

struct simplelist {
	int len;
	struct simplenode *first;
	struct simplenode *last;
};

struct simplelist *simplelist_new(void);
void simplelist_add(struct simplelist *, struct simplenode *);
void simplelist_remove_entry(struct simplelist *, unsigned long);
struct simplenode *simplenode_new_ptr(unsigned long);

#endif
